﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace KeaoMDS.U_Control
{
    public partial class u_weight : UserControl
    {
        public u_weight()
        {
            InitializeComponent();
        }

        public void SetNumber(string NumStr,bool Stable)
        {
            lb_weight.Text = NumStr;
            if (Stable)
            {
                lb_weight.ForeColor = Color.Lime;
            }
            else
            {
                lb_weight.ForeColor = Color.Red;
            }
        }

        public void SetLeft(bool Stable)
        {
            if (Stable)
            {
                pnl_left.BackColor = Color.Green;
            }
            else
            {
                pnl_left.BackColor = Color.Red;
            }
        }

        public void SetRight(bool Stable)
        {
            if (Stable)
            {
                pnl_right.BackColor = Color.Green;
            }
            else
            {
                pnl_right.BackColor = Color.Red;
            }
        }

    }
}
